package mes.kanban.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 角色管理（分为菜单角色EMS_MENU，建立关联表EMS_ROLE_MENU   作业角色即权限角色EMS_JOB，建立关联表EMS_ROLE_JOB）
 * @author zongrui.liu
 */
@Entity
@Table(name="MES_ROLE")
public class MesRole implements Serializable {
	
	private static final long serialVersionUID = -7038888209452959691L;

	@Id
	@GeneratedValue(generator="uuid")
	@GenericGenerator(name="uuid",strategy="org.hibernate.id.UUIDGenerator")
	@Column(name="ID")
	private String id;
	
	/**
	 * 角色名称,角色标识程序中判断使用,如"admin",这个是唯一的:
	 */
	@Column(name="ROLE_NAME")
	private String roleName;
	
	/**
	 * 角色描述
	 */
	@Column(name="ROLE_DESC")
	private String roleDesc;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}
	
	
	
	
}
